From e0e97e869992ed5c1a3cd08e3f22358029099c69 Mon Sep 17 00:00:00 2001 From: Mikkel Kroman Date: Fri, 13 May 2016 07:22:19 +0200 Subject: [PATCH] Fix `cargo test --doc` not testing examples --- src/cargo/ops/cargo_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_test.rs b/src/cargo/ops/cargo_test.rs index 854808798..42e365f6a 100644 --- a/src/cargo/ops/cargo_test.rs +++ b/src/cargo/ops/cargo_test.rs @@ -20,7 +20,7 @@ pub fn run_tests(manifest_path: &Path, return Ok(None) } let mut errors = if options.only_doc { - Vec::new() + try!(run_doc_tests(options, test_args, &compilation)) } else { try!(run_unit_tests(options, test_args, &compilation)) }; -- 2.30.2